<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<!doctype html>
<html lang="ko">
<head>
	<meta charset="UTF-8">
	<title>3D Printing Store</title>
	<script src="/common/js/html5.js"></script>
	<script src="/common/js/css3-mediaqueries.js"></script>
	<script src="/common/js/jquery-1.7.2.min.js"></script>
	<link rel="stylesheet" href="/common/css/login.css" />
	
	<!--For Commons Validator Client Side-->
	<script type="text/javascript" charset="UTF-8" src="<c:url value='validator.do'/>"></script>
	<validator:javascript formName="loginVO" staticJavascript="false" xhtml="true" cdata="false"/>
	
	<script type="text/javascript">
	//<![CDATA[
	$(document).ready(function() {
		window.fn_Login = function(frm) {
			if(!validateLoginVO(frm)){
		        return false;
		    } else {
		    	getForm().action = "<c:url value='/AdminLogin.do'/>";
		    }
		};
	};
	//]]>
	</script>
</head>
<body>
	
	<div id="login_external_wrap">
		<div class="login_inner_wrap">
			<header class="l_title">
				<!--
				< span class="l_title_txt1">3D Printing Store<sup>TM</sup></span>
				<span class="l_title_txt2">company corporation admin mode</span>
				-->
				<img src="../images/adm_common/logo.png" alt="3D 프린팅스토어 로고"/>
			</header>
			<form:form commandName="loginVO" name="frm" method="post" onsubmit="javascript:return fn_Login(this);">
				<div class="l_form_wrap">
					<form:input path="userid" class="l_input l_input1" placeholder="아이디"/>
					<form:password path="passwd" class="l_input l_input2" placeholder="패스워드" />
				</div>
				<div class="l_form_btn">
					<input type="image" src="../images/adm_login/l_confirm.png" class="l_confirm" />
				</div>
			</form:form>
			<footer>
				copyright &copy; Company 3D Printing store. All Right Reserved.
			</footer>
		</div>
	</div>

</body>
</html>